<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>单表管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<!-- <ul class="nav nav-tabs">
		<li><a href="${ctx}/ship/shipIllegal/">单表列表</a></li>
		<li class="active"><a href="${ctx}/ship/shipIllegal/form?id=${shipIllegal.id}">单表<shiro:hasPermission name="ship:shipIllegal:edit">${not empty shipIllegal.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="ship:shipIllegal:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/> -->
	<form:form id="inputForm" modelAttribute="shipIllegal" action="${ctx}/ship/shipIllegal/save" method="post" class="form-horizontal btnbottom">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<table class="field">	
				<tr>
					<th><label class="control-label">姓名：</label></th>
					<td>
							<form:input path="userName" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th><label class="control-label">身份证号码：</label></th>
					<td>
                       <form:input path="userIdcard" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
                       <span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">案发时间：</label></th>
					<td>
						<input name="crimeDate" type="text" readonly="readonly" style="width:252px!important;" maxlength="20" class="input-medium Wdate required"
							value="<fmt:formatDate value="${shipIllegal.crimeDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th></th>
					<td></td>
				</tr>
				<tr>
					<th><label class="control-label">主要案情：</label></th>
					<td colspan=3>
						<form:textarea path="mainCase" htmlEscape="false" rows="3" maxlength="500" class="input-xxlarge g-textarea required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">处理结果：</label></th>
					<td colspan=3>
							<form:textarea path="processResult" htmlEscape="false" rows="3" maxlength="500" class="input-xxlarge g-textarea required" />
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">备注信息：</label></th>
					<td colspan=3>
						<form:textarea path="remarks" htmlEscape="false" rows="3" maxlength="255" class="input-xxlarge g-textarea"/>
					</td>
				</tr>
		</table>
		<div id="btnbottom" class="form-actions">
			<shiro:hasPermission name="ship:shipIllegal:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"  onclick="$('#closedwindow', window.parent.document).val('true');" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="关闭" onclick="top.$.jBox.close(true);"/>
		</div>
	</form:form>
</body>
</html>